<?php get_header(); ?>
<div class="main">
    <div class="primary">
        <section>

		<?php if (have_posts()) : ?>

			<?php $post = $posts[0]; // hack: set $post so that the_date() works ?>
			
			<?php if (is_tag()) { ?>
			<h1 class="hd"><strong class="eph"><?php single_tag_title(); ?></strong>标签下的所有文章</h1>

			<?php } elseif (is_day()) { ?>
			<h1 class="hd"><strong class="eph"><?php the_time('F jS, Y'); ?></strong>之前的所有文章</h1>

			<?php } elseif (is_month()) { ?>
			<h1><strong class="eph"><?php the_time('F, Y'); ?></strong>之前的所有文章</h1>

			<?php } elseif (is_year()) { ?>
			<h1><strong class="eph"><?php the_time('Y'); ?></strong>之前的所有文章</h1>


			<?php } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?>
			<h1>Blog Archives</h1>

			<?php } ?>
				<?php include('includes/cats_posts.php'); ?>
		        <?php PageNav(); ?>

		<?php endif; ?>
		</section>
    </div>

<?php get_sidebar(); ?>
</div>
<?php get_footer(); ?>
